/* 判断用户是否为管理员用户 */
import { useUserStore } from "@/store";
export const usePermissionCheck = () => {
	const userStore = useUserStore();
	const getPermission = computed(() => userStore.userRole);

	const checkPermission = () => {
		return getPermission.value === "*:*:*";
	};

	onMounted(() => {
		// console.log("User Role:", getPermission.value);
	});

	return {
		checkPermission,
	};
};
